using System;

namespace BSDS.Core.Data.TemporaryFiles
{
    public class TempFilename
    {
        public string Value { get; private set; }

        private TempFilename(string value)
        {
            Value = value;
        }

        public static TempFilename New(string prefix)
        {
            return new TempFilename(prefix + "_" + DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss") + ".tmp");
        }
    }
}